<!--<?php
print <<<EOT
-->

<script src="../css/edit.js"></script>
<script>
<!--

function validate(form) {
	if(form.name.value.length < 2 || form.name.value.length > 60) {
		showMsg('msg_area', 'Name must be no more than 60 characters.');
		form.name.focus();
		return false;
	}
	
	if (!isDigit(form.seq.value)) {
	    showMsg('msg_area', 'Sequence must be a nunber.');
		form.seq.focus();
		return false;
	}
	
	return true;
}

//-->
</script>

<!--Content Start-->
<table width="95%" border="0" align="center">
  <tr> 
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td>
      <table width="60%" border="0" align="left" cellpadding="3" cellspacing="3">
        <tr> 
          <td>
          
            <span id="msg_area" class="js_msg">$alert_message</span>           
            
            <table border="0" cellspacing="1" cellpadding="1">
              <tr>
                <td width="50%">
                  <form name="form1" action="#">
                  <table border="0" cellspacing="1" cellpadding="1">
                    <tr> 
                      <td></td>
                      <td><img src="../images/admin/bt_add.gif" border=0  onclick="getAdminEdit('edit_area', '10', '0')"></td>
			          <td><img src="../images/admin/shim.gif" width=30></td>
                    </tr>
                  </table>
                  </form>
                </td>
                <td align="right">
                <form name="form2" method="post"  onsubmit="return validate_search(this, '$key')">
                  <table border="0" cellspacing="1" cellpadding="1">
                    <tr>
                      <td><input type="text" class="text" name="key" size="20" value="$key" onFocus="form2.key.value='';return false"><input type="hidden" name="action" value="search"></td>
			          <td><input name="image" type="image" src="../images/admin/bt_search.gif" onclick="form2.submit;"></td>
			          <td><input name="image" type="image" src="../images/admin/bt_listall.gif" onClick="location.href='i_photo_category.php';return false"></td>
                    </tr>
                  </table>
                  </form>
			    </td>
              </tr>
            </table>
            
            <span id="edit_area"></span>
            
            $page_show

            <table width="100%" border="0" cellspacing="1" cellpadding="1" class="tb">
              <tr class="tbheader"> 
		        <td width="40%">Name</td>
		      <!--  <td width="40%">Name Chinese</td>-->
			    <td width="25%">Sequence</td>
			    
			    <td width="15%"></td>
              </tr>

<!--
EOT;
for($i=0; $i<count($out_ary); $i++){
print <<<EOT
-->
              
              <tr class="tbcontent1"> 
                <td>{$out_ary[$i]['name']}</td>     
               <!-- <td>{$out_ary[$i]['namezh']}</td>    -->
                <td>{$out_ary[$i]['seq']}</td>                        
			    <td align=center bgcolor="ECECEC">
			    <a href="javascript:getAdminEdit('edit_area', '11', '{$out_ary[$i]['id']}')"><img src="../images/admin/bt_edit.gif" border="0" alt="Edit"></a>
			    <a href="i_photo_category.php?action=del&cid={$out_ary[$i]['id']}" onclick="return confirm('Delete {$out_ary[$i]['name']}?')"><img src="../images/admin/bt_delete.gif" border="0" Alt="Delete"></a>
			    </td>
              </tr>

<!--
EOT;
} print <<<EOT
--> 

                            
            </table>

            $page_show

          </td>
        </tr>
      </table>
      
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p></td>
  </tr>
</table>
<!--Content End-->

<!--
EOT;
?>-->